typedef unsigned char u8;
typedef unsigned short u16;

#ifdef USE_WAMP

class wamp
{
public:
    int begin(const u8 *ip, const u16 port = 8888, const u8 *realm = (const u8 *)"Beremiz");
    int loop();

    void end(){
        // eclient.disconnect();
    };
    int publish(const char *topic, u8 bval);

private:
};


#endif

typedef struct
{
    int (*begin)(const u8 *ip, const u16 port , const u8 *realm );
    int (*publish)(const char *topic, u8 bval);
} wamp_t;
